<?php
session_start();
include ("../func/func.php"); 
if (isset($_SESSION['uin'])&&($row['uin']==48||$row['uin']==1)){


if ($hidden=='stop'){

mysql_query("UPDATE nightw_geo.uin SET btl = 0, time_ = 0 ");
mysql_query("DELETE FROM nightw_btl.b ");
mysql_query("DELETE FROM nightw_btl.b_ ");
mysql_query("DELETE FROM nightw_btl.bot ");
$stat = '<b>All batals be stopped</b>';
}

include("nav.php");
?> <br>

<table border="2" cellspacing="2" cellpadding="2" width="800" align='center'>
<tr> <form method="post" action="stop_btl.php">
<td>
 
  <input type="hidden" name="hidden" value="stop"> 
  <br>
  
  <?php echo $stat; ?>
<div align=center>  <input type="submit" name="submit" value="STOP ALL BTL"></div>
<br> 
</td>
</tr> </form>
</table>

<?
}else {
header ("location: login.php");exit();}
?> 
</body>
</html>

